package basic;

import java.util.Scanner;

/**
 * @ClassName: SwitchCaseDemo
 * @Author: fanfan
 * @CreateTime: 2023-04-01  16:47
 * @Description: TODO 学生成绩输出判断
 * @Version: 1.0
 */
public class SwitchCaseDemo {
    public static void main(String[] args) {
        Scanner scan = new Scanner(System.in);
        // 提示语
        System.out.println("请输入学生的成绩");
        String score = scan.next();
        int sco = Integer.parseInt(score) / 10;
        switch (sco){
            case 0:
            case 1:
            case 2:
            case 3:
            case 4:
            case 5:
                System.out.println("不及格");
                break;
            default:
                System.out.println("及格");
        }

        scan.close();
    }
}
